package org.tongdao.yulong.basic_di;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Description: TODO
 * @author: 殷玉龙
 * @date: 2020年09月27日 5:21 下午
 */
public class QuickStartInjectBySetApplication {
  public static void main(String[] args) {
    BeanFactory beanFactory = new ClassPathXmlApplicationContext("basic_di/inject-set.xml");
    Person person = beanFactory.getBean(Person.class);
    Cat cat = beanFactory.getBean(Cat.class);
    System.out.println(person);
    System.out.println(cat);
  }
}
